#include <REGX52.H>
#include "LCD1602.h"
#include "Delay.h"
#include "XPT2046.H"
void main()
{unsigned char ADj,NIT ,GR;
	LCD_Init();
	LCD_ShowString(1,1,"ADj  NIT   GR");
	while(1)
	{
        ADj=XPT2046_Read(XPT2046_XP_8);
		Delay(10);
		LCD_ShowNum(2,1,ADj,3);
		NIT=XPT2046_Read(XPT2046_YP_8);
		Delay(10);
		LCD_ShowNum(2,5,NIT,3);
		GR=XPT2046_Read(XPT2046_BAT_8);
		Delay(10);
		LCD_ShowNum(2,10,GR,3);
	}

}